import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import mitt from 'mitt'
import directives from '@/directives/drag.js'

const app = createApp(App)
// vue3挂载到全局
app.config.globalProperties.$mitt = mitt()
// 自定义指令
directives(app)

app.use(createPinia())
app.use(router)

app.mount('#app')
